package com.cherkashyn.vitaliy.devices.ethernet.socket3.commands.manage;

import com.cherkashyn.vitaliy.devices.ethernet.socket3.commands.BaseCommand;

public class CommandContactBounceSet extends BaseCommand<Byte> {
    private final byte[] request;
    
    /**
     * @param value - real bounce - VALUE * 20 milliseconds
     */
    public CommandContactBounceSet(byte value){
	this.request=new byte[]{0x40, 0x01, value};
    }
    
    @Override
    protected byte[] getRequestBytes() {
	return this.request;
    }

    @Override
    protected int getLengthOfResponse() {
	return 3;
    }
}
